package com.sxj.corejava.code16_单例模式;

/**
 * @author 石小俊
 */
public class Test01_饿汉模式 {

    public static void main(String[] args) {
        SomeBean someBean = SomeBean.getSomeBean();
        SomeBean someBean2 = SomeBean.getSomeBean();
        SomeBean someBean3 = SomeBean.getSomeBean();
        System.out.println(someBean == someBean2);
        System.out.println(someBean == someBean3);

    }

}
